package com.spark.incoicings.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spark.incoicings.dao.OrderDetailMapper;
import com.spark.incoicings.service.OrderDetailService;
import com.spark.incoicings.vo.OrderDetailVo;
import com.spark.invoicings.entity.OrderDetail;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailMapper, OrderDetail> implements OrderDetailService {
    @Resource
    private OrderDetailMapper om;
    @Override
    public List<OrderDetail> selectODetail(Integer id) {
        return om.selectODetail(id);
    }

    @Override
    public List<OrderDetailVo> selectOrderDetailVo(Integer productId) {
        return om.selectOrderDetailVo(productId);
    }

    @Override
    public List<Integer> selectProductIds() {
        return om.selectProductIds();
    }
}
